[Ivy]
[>Created: Fri Jan 03 10:47:20 ICT 2014]
1434185343153442 3.17 #module
>Proto >Proto Collection #zClass
ls0 loginFormProcess Big #zClass
ls0 RD #cInfo
ls0 #process
ls0 @TextInP .ui2RdDataAction .ui2RdDataAction #zField
ls0 @TextInP .rdData2UIAction .rdData2UIAction #zField
ls0 @TextInP .resExport .resExport #zField
ls0 @TextInP .type .type #zField
ls0 @TextInP .processKind .processKind #zField
ls0 @AnnotationInP-0n ai ai #zField
ls0 @TextInP .xml .xml #zField
ls0 @TextInP .responsibility .responsibility #zField
ls0 @RichDialogInitStart f0 '' #zField
ls0 @RichDialogProcessEnd f1 '' #zField
ls0 @PushWFArc f2 '' #zField
ls0 @RichDialogProcessStart f3 '' #zField
ls0 @GridStep f4 '' #zField
ls0 @PushWFArc f5 '' #zField
ls0 @RichDialogProcessEnd f6 '' #zField
ls0 @RichDialog f8 '' #zField
ls0 @Alternative f9 '' #zField
ls0 @PushWFArc f10 '' #zField
ls0 @PushWFArc f11 '' #zField
ls0 @PushWFArc f7 '' #zField
ls0 @RichDialogProcessEnd f12 '' #zField
ls0 @PushWFArc f13 '' #zField
>Proto ls0 ls0 loginFormProcess #zField
ls0 f0 guid 14341853444AE1DC #txt
ls0 f0 type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
ls0 f0 method start() #txt
ls0 f0 disableUIEvents true #txt
ls0 f0 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<> param = methodEvent.getInputArguments();
' #txt
ls0 f0 outParameterDecl '<> result;
' #txt
ls0 f0 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>start()</name>
    </language>
</elementInfo>
' #txt
ls0 f0 86 54 20 20 13 0 #rect
ls0 f0 @|RichDialogInitStartIcon #fIcon
ls0 f1 type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
ls0 f1 86 150 20 20 13 0 #rect
ls0 f1 @|RichDialogProcessEndIcon #fIcon
ls0 f2 expr out #txt
ls0 f2 96 74 96 150 #arcP
ls0 f3 guid 143425CDD4D29F25 #txt
ls0 f3 type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
ls0 f3 actionDecl 'vision.nvhuong.helloIvy.loginForm.loginFormData out;
' #txt
ls0 f3 actionTable 'out=in;
' #txt
ls0 f3 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>login</name>
        <nameStyle>5,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
ls0 f3 334 38 20 20 13 0 #rect
ls0 f3 @|RichDialogProcessStartIcon #fIcon
ls0 f4 actionDecl 'vision.nvhuong.helloIvy.loginForm.loginFormData out;
' #txt
ls0 f4 actionTable 'out=in;
' #txt
ls0 f4 actionCode 'ivy.log.info("username: "+in.username);
ivy.log.info("password: "+in.password);

String userName = "nvhuong";
String password= "nvhuong";

if(in.username.equalsIgnoreCase(userName)&&in.password.equalsIgnoreCase(password)){
	in.message = "Login successfully!";
	in.isLoginSuccessful = true;
}else{
	in.message = "Login fail! Incorrect username or password.";
	in.isLoginSuccessful = false;
}' #txt
ls0 f4 type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
ls0 f4 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>check login</name>
        <nameStyle>11,7
</nameStyle>
    </language>
</elementInfo>
' #txt
ls0 f4 326 92 36 24 35 -5 #rect
ls0 f4 @|StepIcon #fIcon
ls0 f5 expr out #txt
ls0 f5 344 58 344 92 #arcP
ls0 f6 type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
ls0 f6 334 222 20 20 13 0 #rect
ls0 f6 @|RichDialogProcessEndIcon #fIcon
ls0 f8 targetWindow NEW:card: #txt
ls0 f8 targetDisplay TOP #txt
ls0 f8 richDialogId vision.nvhuong.helloIvy.CRUDDemoForm #txt
ls0 f8 startMethod start() #txt
ls0 f8 type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
ls0 f8 requestActionDecl '<> param;' #txt
ls0 f8 responseActionDecl 'vision.nvhuong.helloIvy.loginForm.loginFormData out;
' #txt
ls0 f8 responseMappingAction 'out=in;
' #txt
ls0 f8 windowConfiguration '* ' #txt
ls0 f8 isAsynch false #txt
ls0 f8 isInnerRd true #txt
ls0 f8 userContext '* ' #txt
ls0 f8 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>CRUD Demo page</name>
        <nameStyle>14,7
</nameStyle>
    </language>
</elementInfo>
' #txt
ls0 f8 518 156 36 24 -32 22 #rect
ls0 f8 @|RichDialogIcon #fIcon
ls0 f9 type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
ls0 f9 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name></name>
    </language>
</elementInfo>
' #txt
ls0 f9 330 154 28 28 -56 -37 #rect
ls0 f9 @|AlternativeIcon #fIcon
ls0 f10 expr out #txt
ls0 f10 344 116 344 154 #arcP
ls0 f11 expr in #txt
ls0 f11 outCond 'in.isLoginSuccessful == true' #txt
ls0 f11 .xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>check login sucessfully
</name>
        <nameStyle>24,7
</nameStyle>
    </language>
</elementInfo>
' #txt
ls0 f11 358 168 518 168 #arcP
ls0 f7 expr in #txt
ls0 f7 344 182 344 222 #arcP
ls0 f12 type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
ls0 f12 638 158 20 20 13 0 #rect
ls0 f12 @|RichDialogProcessEndIcon #fIcon
ls0 f13 expr out #txt
ls0 f13 554 168 638 168 #arcP
>Proto ls0 .type vision.nvhuong.helloIvy.loginForm.loginFormData #txt
>Proto ls0 .processKind HTML_DIALOG #txt
>Proto ls0 -8 -8 16 16 16 26 #rect
>Proto ls0 '' #fIcon
ls0 f0 mainOut f2 tail #connect
ls0 f2 head f1 mainIn #connect
ls0 f3 mainOut f5 tail #connect
ls0 f5 head f4 mainIn #connect
ls0 f4 mainOut f10 tail #connect
ls0 f10 head f9 in #connect
ls0 f9 out f11 tail #connect
ls0 f11 head f8 mainIn #connect
ls0 f9 out f7 tail #connect
ls0 f7 head f6 mainIn #connect
ls0 f8 mainOut f13 tail #connect
ls0 f13 head f12 mainIn #connect
